package com.our.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.our.dao.NewsTypeMapper;
import com.our.model.NewsType;

@Service
public class NewsTypeBiz {
	
	@Resource
	private NewsTypeMapper dao;
	
	public List<NewsType> findAll(){
		System.out.println("--------------11111111111111111111111");
		return dao.selectAll();
	}
	
	public NewsType findById(int typeId){
		return dao.selectByPrimaryKey(typeId);
	}
	
}
